package com.cn.lp.export.server.base.context;

import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * Created by xiaoqing on 2019/1/17.
 */
@CrossOrigin
public interface BaseController {

    default <O> CommandResult<O> succ() {
        return ResponseResultFactory.SUCC;
    }

    default <O> CommandResult<O> succ(O obj) {
        return ResponseResultFactory.success(obj);
    }

}
